package com.net.shop.car.manager.api.volley.request;

import org.json.JSONException;
import org.json.JSONObject;

import com.net.shop.car.manager.api.volley.Request;
import com.net.shop.car.manager.utils.Constants;
import com.net.shop.car.manager.utils.LogUtils;

/**
 * 请使用GetMemberInfoResponse作响应
 * @author Deve
 *
 */
public class GetMemberInfo extends Request {
	/**
	 * 会员id
	 */
	private String memberId;
	
	private String token;

	public GetMemberInfo(String memberId,String token) {
		super(Constants.GET_MEMBER_INFO);
		this.memberId = memberId;
		this.token = token;
	}

	@Override
	public void extensionJSON(JSONObject jsonObject) {
		try {
			jsonObject.put("memberid",memberId);
			jsonObject.put("apptype", Constants.ANDROID_TAG);
			jsonObject.put("token", token);
		} catch (JSONException e) {
			LogUtils.e(e.getMessage());
		}
	}

}
